package me.weijing.common.model;

import org.jivesoftware.smack.packet.IQ;

/**
 * 向openfire服务器发送消息
 * 
 * @author jiayuan.luo 2013-7-22下午6:33:07
 * @version 1.0.0
 * @category 杭州尤拉夫科技有限公司(微警)
 */
public class PingExtension extends IQ {

    public static final String NAMESPACE = "urn:xmpp:ping";

    public static final String ELEMENT = "ping";

    public PingExtension() {
    }

    @Override
    public String getChildElementXML() {
        if (getType() == IQ.Type.RESULT)
            return null;
        return "<" + ELEMENT + " xmlns=\"" + NAMESPACE + "\" />";
    }

}
